home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_319 / cnewssrc / cnews.orig.lzh / contrib / rn.mod / cdiff.addng.c next >
C/C++ Source or Header  |  1989-06-27  |  3KB  |  114 lines

  1. *** addng.old.c    Sat Jun  3 05:56:19 1989
  2. --- addng.c    Sat Jun  3 05:56:20 1989
  3. ***************
  4. *** 1,4
  5. ! /* $Header: addng.c,v 1.1 89/06/03 05:29:01 geoff Exp $
  6.    *
  7.    *    UW Mods:
  8.    *        GETNG_YNQ - typing Q gets you out of the newsgroup loop
  9.  
  10. --- 1,4 -----
  11. ! /* $Header: addng.c,v 1.2 89/06/03 05:35:30 geoff Exp $
  12.    *
  13.    *    UW Mods:
  14.    *        GETNG_YNQ - typing Q gets you out of the newsgroup loop
  15. ***************
  16. *** 3,10
  17.    *    UW Mods:
  18.    *        GETNG_YNQ - typing Q gets you out of the newsgroup loop
  19.    * $Log:    addng.c,v $
  20. !  * Revision 1.1  89/06/03  05:29:01  geoff
  21. !  * Initial revision
  22.    * 
  23.    * Revision 1.3  87/09/10  19:39:47  sahayman
  24.    * newlist for SERVER now asks for all groups from the dawn of time
  25.  
  26. --- 3,10 -----
  27.    *    UW Mods:
  28.    *        GETNG_YNQ - typing Q gets you out of the newsgroup loop
  29.    * $Log:    addng.c,v $
  30. !  * Revision 1.2  89/06/03  05:35:30  geoff
  31. !  * nuke a useless stat.
  32.    * 
  33.    * Revision 1.3  87/09/10  19:39:47  sahayman
  34.    * newlist for SERVER now asks for all groups from the dawn of time
  35. ***************
  36. *** 183,189
  37.   char *ngnam;
  38.   ART_NUM ngsize;
  39.   {
  40. -     char tst[128];
  41.       long time();
  42.    
  43.       sprintf(tst, ngsize ? "%s/%s/1" : "%s/%s" ,spool,getngdir(ngnam));
  44.  
  45. --- 183,188 -----
  46.   char *ngnam;
  47.   ART_NUM ngsize;
  48.   {
  49.       long time();
  50.    
  51.       /*
  52. ***************
  53. *** 186,192
  54.       char tst[128];
  55.       long time();
  56.    
  57. -     sprintf(tst, ngsize ? "%s/%s/1" : "%s/%s" ,spool,getngdir(ngnam));
  58.       /*
  59.        * After a long oddyssey of changes, we have
  60.        * restored the patch 19 behaviour here.
  61.  
  62. --- 185,190 -----
  63.   {
  64.       long time();
  65.    
  66.       /*
  67.        * After a long oddyssey of changes, we have
  68.        * restored the patch 19 behaviour here.
  69. ***************
  70. *** 192,197
  71.        * restored the patch 19 behaviour here.
  72.        * This gives the minimum number of wrong answers.
  73.        * ..sah 87/07/29
  74.        */
  75.   
  76.       if (stat(tst,&filestat) < 0)
  77.  
  78. --- 190,197 -----
  79.        * restored the patch 19 behaviour here.
  80.        * This gives the minimum number of wrong answers.
  81.        * ..sah 87/07/29
  82. +      * Bzzt!  Wrong!  Article 1 will always be long gone; nuke da stat(2).
  83. +      * - geoff
  84.        */
  85.       /* not there, assume something good */
  86.       return (ngsize ? 0L : time(Null(long *)));
  87. ***************
  88. *** 193,204
  89.        * This gives the minimum number of wrong answers.
  90.        * ..sah 87/07/29
  91.        */
  92. !     if (stat(tst,&filestat) < 0)
  93. !     return (ngsize ? 0L : time(Null(long *)));
  94. !     /* not there, assume something good */
  95. !     else
  96. !     return filestat.st_mtime;
  97.   }
  98.   
  99.   bool
  100.  
  101. --- 193,200 -----
  102.        * Bzzt!  Wrong!  Article 1 will always be long gone; nuke da stat(2).
  103.        * - geoff
  104.        */
  105. !     /* not there, assume something good */
  106. !     return (ngsize ? 0L : time(Null(long *)));
  107.   }
  108.   
  109.   bool
  110.  
  111.  
  112.  
  113.